import Vue from 'vue'
import App from './App.vue'

import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Index from './views/Index'
import Classify from './views/Classify'
import Order from './views/Order'
import Mine from './views/Mine'
const routes = [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    component: Index
  },
  {
    path: '/classfiy',
    component: Classify
  },
  {
    path: '/order',
    component: Order
  },
  {
    path: '/mine',
    component: Mine
  }
]

const router = new VueRouter({
  routes
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
